<?php $this->load->view('common/ck-bosspagehead'); ?>
<?php $this->load->view('common/ck-bossheader'); ?>
<article id="content">
    <div class="pgwrapper">
    <div class="w960 bg1 p15 bx_shw">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="20%" style="border-right: 2px solid #e5e5e5;" valign="top">
			<?php $this->load->view('enterprises/leftnavCMS'); ?>
			</td>
			<td width="80%" valign="top" style="padding:10px;">
    <!--Body top CRV PART Ends HERE-->
<table width="100%" border="1" cellpadding="10" cellspacing="0" style="border:1px solid #e5e5e5; border-collapse:collapse;">
<tr>
                <table border="1" style="font-size:12px;font-family:Arial" cellpadding="5" cellspacing="0">
                <tr>
                <td class="txt-blck"><strong>S. No</strong></td>
                    <td class="txt-blck"><strong>Store Name</strong></td>
                    <td class="txt-blck"><strong>Total Rating</strong></td>
                    <td class="txt-blck"><strong>Rating Count</strong></td>
                    <td class="txt-blck"><strong>Stars (out of 5)</strong></td>
                    </tr>
                <?php $i=1; foreach($storePopOrder as $temp => $value) { ?>
                    <tr>
                    <td><?php echo $i++; ?></td>
                    <td><div><strong><?php echo $value['store_name']; ?></strong></div></td>
                    <td><div><strong><?php echo $value['sum']; ?></strong></div></td>
                    <td><div><strong><?php echo $value['count']; ?></strong></div></td>
                    <td><div><strong>
                    <?php $avg = $value['sum']/$value['count'];
                    echo number_format($avg, 1);?>
                    </strong></div></td>
                    </tr>
                    
                <?php } ?>
                </table>
                </td>
                </tr>
                </table>
</div>
</div>
</article>
<div class="clr-both spacer-10">&nbsp;</div>
<?php $this->load->view('common/ck-bossfooter'); ?>